var xmlHttp3

function doctypech(){
	sel = document.getElementById("xdepart")	
	ppid = sel.value
	setDoctype(ppid)
}

function setDoctype(pid){ 
	var url="get_doctype.php?depart="+pid
	xmlHttp3=GetXmlHttpObject(setDoctypeRun)
	xmlHttp3.open("GET", url , true)
	xmlHttp3.send(null)
} 

function setDoctypeRun(){ 
	if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete"){ 
		document.getElementById("doctype_dat").innerHTML=xmlHttp3.responseText 
	} 
} 


